package com.syh.jn.scm.domain.supplier.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.supplier.entity.stock.StockSpill;

/**
 * 报溢事件
 */
public class StockSpillEvent extends DomainEvent<StockSpill> {

  public static final String STOCK_SPILL_CONFIRM_STATUS = "stockSpillConfirmStatus";

  //确认
  public static StockSpillEvent buildStockSpillConfirmStatus(Object[] values) {
    StockSpillEvent stockSpillEvent = new StockSpillEvent();
    stockSpillEvent.eventName = STOCK_SPILL_CONFIRM_STATUS;
    stockSpillEvent.values = values;
    return stockSpillEvent;
  }

  public static final String STOCK_SPILL_UN_CONFIRM_STATUS = "stockSpillUnConfirmStatus";

  //取消确认
  public static StockSpillEvent buildStockSpillUnConfirmStatus(Object[] values) {
    StockSpillEvent stockSpillEvent = new StockSpillEvent();
    stockSpillEvent.eventName = STOCK_SPILL_UN_CONFIRM_STATUS;
    stockSpillEvent.values = values;
    return stockSpillEvent;
  }
}
